package com.onlyyou.pictureserver.mapper;

import com.onlyyou.pictureserver.entity.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 小野
 * @Date: 2020/1/13 11:33
 */
@Repository
@Mapper
public interface StockMapper {
    Integer rows();

    List<Stock> findAll(Integer page, Integer limit);

    void add(Stock stock);

    Stock findById(Long id);

    void update(Long id);
}
